package lesson02_01;

public class TestClassAndObject {
    public static void main(String[] args){
        Person p1=new Person();
        p1.age=20;
        p1.printInfo();
        Person p2=new Person();
        p2.age=100;
        p2.printInfo();
    }
}

class Person{
    public int age;
    public void printInfo(){
        System.out.println("age:"+age);
    }
}
